<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div:nth-child(1) {
      width: 200px;
      height: 200px;
      background-color: pink;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: wrap;
    }

    div:nth-child(2) {
      width: 200px;
      height: 200px;
      background-color: blue;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }
  </style>
</head>

<body>
  <div>1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111</div>
  <div>1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111</div>
</body>

</html>